package com.abbcc.models;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.abbcc.service.BaseService;
import com.abbcc.util.BeansFactory;
import com.abbcc.util.ObjectUtil;
import com.abbcc.util.StringUtil;

@SuppressWarnings("serial")
@Entity
@Table(name = "p_product")
public class TdProduct implements java.io.Serializable{
	private int productId;
	private String name;	//名称
	private float pwidth;	//规格宽度
	private float pheight;	//规格高度
	private String prodType;//门面款式
	private String hinge;	//铰链
	private String state;	//产品状态
	private String direction;//开门方向
	private Date addTime;	
	private int proCount; //产品数量
	private String handle;	 //拉手
	private String locks;	 //锁具
	private String catseye;	 //猫眼
	private String doorbell; //门铃
	private String color;	 //颜色
	private String doorframe;//门框
	private String threshold;//门槛
	private String client;	 //客户
	private String remarks;	 //备注
	private String marked;	 //标注
	private Date orderTime;	 //订货日期
	private Date deliveryTime;//交货日期
	private float height;	 //门高(净高度)
	private String pnumber;	 //产品编号
	private String transom;	 //气窗
	private String sdoor;	//小门
	private String sframe;	//小窗
	private Date fhTime;	//发货时间
	private String color1;
	private String prodType1;
	private String lscq22;
	private String mmlldbz;
	private String mmlldbs;
	private String zplldjlbs;
	private String zplldsjbs;
	private String zplldmybs;
	private String zplldmlbs;
	private String zplldcxbs;
	private String zplldbz;
	
	private float  pfs1;
	private float  pfx1;
	private float  pfs2;
	private float pfx2;
	private float  pfs3;
	private float  pfx3;
	private float  pfs4;
	private float pfx4;
	private float  d_height;
	private float  qc_height;
	private float nk_left;
	private float  nk_bottom;
	private float lsqc1;
	private float lsqc2;
	private float lsqc3;
	private float zd1;
	private float zd2;
	private float sd1;
	private float sd2;
	private float zongd1;
	private float zongd2;
	private float bxt1;
	private float bxt2;
	private float bxt3;
	private float t1s;
	private float t1x;
	private float t2s;
	private float t2x;
	private float t3s;
	private float t3x;
	private float t4s;
	private float t4x;
	private float xl1;
	private float xl2;
	private float xl3;
	private float xl4;
	private float xl5;
	private float xl6;
	private float xl7;
	private float xl8;
	private float xlx1;
	private float xlx2;
	private float xlx3;
	private float xlx4;
	private float xlx5;
	private float xlx6;
	private float xlx7;
	private float xlx8;
	private float dtsck;
	private float left3;
	private float left4;
	private float left5;
	private float left6;
	private float left7;
	private float left8;
	private float left9;
	private float left10;
	private float qcxl1;
	private float qcxl2;
	private String lsqc;
	private String zd3;
	private String zongd3;
	private String sd3;
	private String pace;
	private String bxt;
	private float mmhd;
	@Id 
	@Column(name = "product_id")
	public int getProductId() {
		return productId;
	}
	public void setProductId(int productId) {
		this.productId = productId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Column(name="prod_type") 
	public String getProdType() {
		return prodType;
	}
	public void setProdType(String prodType) {
		this.prodType = prodType;
	}
	public String getHinge() {
		return hinge;
	}
	public void setHinge(String hinge) {
		this.hinge = hinge;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getDirection() {
		return direction;
	}
	public void setDirection(String direction) {
		this.direction = direction;
	}
	@Column(name="add_time") 
	public Date getAddTime() {
		return addTime;
	}
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	public int getProCount() {
		return proCount;
	}
	public void setProCount(int proCount) {
		this.proCount = proCount;
	}
	public String getHandle() {
		return handle;
	}
	public void setHandle(String handle) {
		this.handle = handle;
	}
	public String getLocks() {
		return locks;
	}
	public void setLocks(String locks) {
		this.locks = locks;
	}
	public String getCatseye() {
		return catseye;
	}
	public void setCatseye(String catseye) {
		this.catseye = catseye;
	}
	public String getDoorbell() {
		return doorbell;
	}
	public void setDoorbell(String doorbell) {
		this.doorbell = doorbell;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public String getDoorframe() {
		return doorframe;
	}
	public void setDoorframe(String doorframe) {
		this.doorframe = doorframe;
	}
	public String getThreshold() {
		return threshold;
	}
	public void setThreshold(String threshold) {
		this.threshold = threshold;
	}
	public String getClient() {
		return client;
	}
	public void setClient(String client) {
		this.client = client;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getMarked() {
		return marked;
	}
	public void setMarked(String marked) {
		this.marked = marked;
	}
	@Column(name="order_time") 
	public Date getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}
	@Column(name="delivery_time") 
	public Date getDeliveryTime() {
		return deliveryTime;
	}
	public void setDeliveryTime(Date deliveryTime) {
		this.deliveryTime = deliveryTime;
	}
	public float getHeight() {
		return height;
	}
	public void setHeight(float height) {
		this.height = height;
	}
	public String getTransom() {
		return transom;
	}
	public void setTransom(String transom) {
		this.transom = transom;
	}
	public String getSdoor() {
		return sdoor;
	}
	public void setSdoor(String sdoor) {
		this.sdoor = sdoor;
	}
	public String getSframe() {
		return sframe;
	}
	public void setSframe(String sframe) {
		this.sframe = sframe;
	}
	@Column(name="p_width")
	public float getPwidth() {
		return pwidth;
	}
	public void setPwidth(float pwidth) {
		this.pwidth = pwidth;
	}
	@Column(name="p_height")
	public float getPheight() {
		return pheight;
	}
	public void setPheight(float pheight) {
		this.pheight = pheight;
	}
	@Column(name="p_number")
	public String getPnumber() {
		return pnumber;
	}
	public void setPnumber(String pnumber) {
		this.pnumber = pnumber;
	}
	
	
	public float getPfs1() {
		return pfs1;
	}
	public void setPfs1(float pfs1) {
		this.pfs1 = pfs1;
	}
	public float getPfx1() {
		return pfx1;
	}
	public void setPfx1(float pfx1) {
		this.pfx1 = pfx1;
	}
	public float getPfs2() {
		return pfs2;
	}
	public void setPfs2(float pfs2) {
		this.pfs2 = pfs2;
	}
	public float getPfx2() {
		return pfx2;
	}
	public void setPfx2(float pfx2) {
		this.pfx2 = pfx2;
	}
	public float getPfs3() {
		return pfs3;
	}
	public void setPfs3(float pfs3) {
		this.pfs3 = pfs3;
	}
	public float getPfx3() {
		return pfx3;
	}
	public void setPfx3(float pfx3) {
		this.pfx3 = pfx3;
	}
	public float getPfs4() {
		return pfs4;
	}
	public void setPfs4(float pfs4) {
		this.pfs4 = pfs4;
	}
	public float getPfx4() {
		return pfx4;
	}
	public void setPfx4(float pfx4) {
		this.pfx4 = pfx4;
	}
	public float getD_height() {
		return d_height;
	}
	public void setD_height(float d_height) {
		this.d_height = d_height;
	}
	public float getQc_height() {
		return qc_height;
	}
	public void setQc_height(float qc_height) {
		this.qc_height = qc_height;
	}
	public float getNk_left() {
		return nk_left;
	}
	public void setNk_left(float nk_left) {
		this.nk_left = nk_left;
	}
	public float getNk_bottom() {
		return nk_bottom;
	}
	public void setNk_bottom(float nk_bottom) {
		this.nk_bottom = nk_bottom;
	}
	public float getLsqc1() {
		return lsqc1;
	}
	public void setLsqc1(float lsqc1) {
		this.lsqc1 = lsqc1;
	}
	public float getLsqc2() {
		return lsqc2;
	}
	public void setLsqc2(float lsqc2) {
		this.lsqc2 = lsqc2;
	}
	public float getLsqc3() {
		return lsqc3;
	}
	public void setLsqc3(float lsqc3) {
		this.lsqc3 = lsqc3;
	}
	public float getZd1() {
		return zd1;
	}
	public void setZd1(float zd1) {
		this.zd1 = zd1;
	}
	public float getZd2() {
		return zd2;
	}
	public void setZd2(float zd2) {
		this.zd2 = zd2;
	}
	public float getSd1() {
		return sd1;
	}
	public void setSd1(float sd1) {
		this.sd1 = sd1;
	}
	public float getSd2() {
		return sd2;
	}
	public void setSd2(float sd2) {
		this.sd2 = sd2;
	}
	public float getZongd1() {
		return zongd1;
	}
	public void setZongd1(float zongd1) {
		this.zongd1 = zongd1;
	}
	public float getZongd2() {
		return zongd2;
	}
	public void setZongd2(float zongd2) {
		this.zongd2 = zongd2;
	}
	public float getBxt1() {
		return bxt1;
	}
	public void setBxt1(float bxt1) {
		this.bxt1 = bxt1;
	}
	public float getBxt2() {
		return bxt2;
	}
	public void setBxt2(float bxt2) {
		this.bxt2 = bxt2;
	}
	public float getBxt3() {
		return bxt3;
	}
	public void setBxt3(float bxt3) {
		this.bxt3 = bxt3;
	}
	public float getT1s() {
		return t1s;
	}
	public void setT1s(float t1s) {
		this.t1s = t1s;
	}
	public float getT1x() {
		return t1x;
	}
	public void setT1x(float t1x) {
		this.t1x = t1x;
	}
	public float getT2s() {
		return t2s;
	}
	public void setT2s(float t2s) {
		this.t2s = t2s;
	}
	public float getT2x() {
		return t2x;
	}
	public void setT2x(float t2x) {
		this.t2x = t2x;
	}
	public float getXl1() {
		return xl1;
	}
	public void setXl1(float xl1) {
		this.xl1 = xl1;
	}
	public float getXl2() {
		return xl2;
	}
	public void setXl2(float xl2) {
		this.xl2 = xl2;
	}
	public float getXl3() {
		return xl3;
	}
	public void setXl3(float xl3) {
		this.xl3 = xl3;
	}
	public float getXl4() {
		return xl4;
	}
	public void setXl4(float xl4) {
		this.xl4 = xl4;
	}
	public float getXlx1() {
		return xlx1;
	}
	public void setXlx1(float xlx1) {
		this.xlx1 = xlx1;
	}
	public float getXlx2() {
		return xlx2;
	}
	public void setXlx2(float xlx2) {
		this.xlx2 = xlx2;
	}
	public float getXlx3() {
		return xlx3;
	}
	public void setXlx3(float xlx3) {
		this.xlx3 = xlx3;
	}
	public float getXlx4() {
		return xlx4;
	}
	public void setXlx4(float xlx4) {
		this.xlx4 = xlx4;
	}
	public float getDtsck() {
		return dtsck;
	}
	public void setDtsck(float dtsck) {
		this.dtsck = dtsck;
	}
	
	public float getT3s() {
		return t3s;
	}
	public void setT3s(float t3s) {
		this.t3s = t3s;
	}
	public float getT3x() {
		return t3x;
	}
	public void setT3x(float t3x) {
		this.t3x = t3x;
	}
	public float getT4s() {
		return t4s;
	}
	public void setT4s(float t4s) {
		this.t4s = t4s;
	}
	public float getT4x() {
		return t4x;
	}
	public void setT4x(float t4x) {
		this.t4x = t4x;
	}
	
	public float getXl5() {
		return xl5;
	}
	public void setXl5(float xl5) {
		this.xl5 = xl5;
	}
	public float getXl6() {
		return xl6;
	}
	public void setXl6(float xl6) {
		this.xl6 = xl6;
	}
	public float getXl7() {
		return xl7;
	}
	public void setXl7(float xl7) {
		this.xl7 = xl7;
	}
	public float getXl8() {
		return xl8;
	}
	public void setXl8(float xl8) {
		this.xl8 = xl8;
	}
	public float getXlx5() {
		return xlx5;
	}
	public void setXlx5(float xlx5) {
		this.xlx5 = xlx5;
	}
	public float getXlx6() {
		return xlx6;
	}
	public void setXlx6(float xlx6) {
		this.xlx6 = xlx6;
	}
	public float getXlx7() {
		return xlx7;
	}
	public void setXlx7(float xlx7) {
		this.xlx7 = xlx7;
	}
	public float getXlx8() {
		return xlx8;
	}
	public void setXlx8(float xlx8) {
		this.xlx8 = xlx8;
	}
	
	public float getLeft3() {
		return left3;
	}
	public void setLeft3(float left3) {
		this.left3 = left3;
	}
	public float getLeft4() {
		return left4;
	}
	public void setLeft4(float left4) {
		this.left4 = left4;
	}
	public float getLeft5() {
		return left5;
	}
	public void setLeft5(float left5) {
		this.left5 = left5;
	}
	public float getLeft6() {
		return left6;
	}
	public void setLeft6(float left6) {
		this.left6 = left6;
	}
	public float getLeft7() {
		return left7;
	}
	public void setLeft7(float left7) {
		this.left7 = left7;
	}
	public float getLeft8() {
		return left8;
	}
	public void setLeft8(float left8) {
		this.left8 = left8;
	}
	public float getLeft9() {
		return left9;
	}
	public void setLeft9(float left9) {
		this.left9 = left9;
	}
	public float getLeft10() {
		return left10;
	}
	public void setLeft10(float left10) {
		this.left10 = left10;
	}
	
	public float getQcxl1() {
		return qcxl1;
	}
	public void setQcxl1(float qcxl1) {
		this.qcxl1 = qcxl1;
	}
	public float getQcxl2() {
		return qcxl2;
	}
	public void setQcxl2(float qcxl2) {
		this.qcxl2 = qcxl2;
	}
	
	
	public String getZd3() {
		return zd3;
	}
	public void setZd3(String zd3) {
		this.zd3 = zd3;
	}
	public String getZongd3() {
		return zongd3;
	}
	public void setZongd3(String zongd3) {
		this.zongd3 = zongd3;
	}
	public String getSd3() {
		return sd3;
	}
	public void setSd3(String sd3) {
		this.sd3 = sd3;
	}
	public String getLsqc() {
		return lsqc;
	}
	public void setLsqc(String lsqc) {
		this.lsqc = lsqc;
	}
	
	public String getBxt() {
		return bxt;
	}
	public void setBxt(String bxt) {
		this.bxt = bxt;
	}
	public String getPace() {
		return pace;
	}
	public void setPace(String pace) {
		this.pace = pace;
	}
	
	public String getColor1() {
		return color1;
	}
	public void setColor1(String color1) {
		this.color1 = color1;
	}
	
	
	public String getLscq22() {
		return lscq22;
	}
	public void setLscq22(String lscq22) {
		this.lscq22 = lscq22;
	}
	public String getProdType1() {
		return prodType1;
	}
	public void setProdType1(String prodType1) {
		this.prodType1 = prodType1;
	}
	public float getMmhd() {
		return mmhd;
	}
	public void setMmhd(float mmhd) {
		this.mmhd = mmhd;
	}
	@Column(name="fh_time")
	public Date getFhTime() {
		return fhTime;
	}
	public void setFhTime(Date fhTime) {
		this.fhTime = fhTime;
	}
	
	
	public String getMmlldbz() {
		return mmlldbz;
	}
	public void setMmlldbz(String mmlldbz) {
		this.mmlldbz = mmlldbz;
	}
	public String getMmlldbs() {
		return mmlldbs;
	}
	public void setMmlldbs(String mmlldbs) {
		this.mmlldbs = mmlldbs;
	}
	public String getZplldjlbs() {
		return zplldjlbs;
	}
	public void setZplldjlbs(String zplldjlbs) {
		this.zplldjlbs = zplldjlbs;
	}
	public String getZplldsjbs() {
		return zplldsjbs;
	}
	public void setZplldsjbs(String zplldsjbs) {
		this.zplldsjbs = zplldsjbs;
	}
	public String getZplldmybs() {
		return zplldmybs;
	}
	public void setZplldmybs(String zplldmybs) {
		this.zplldmybs = zplldmybs;
	}
	public String getZplldmlbs() {
		return zplldmlbs;
	}
	public void setZplldmlbs(String zplldmlbs) {
		this.zplldmlbs = zplldmlbs;
	}
	public String getZplldcxbs() {
		return zplldcxbs;
	}
	public void setZplldcxbs(String zplldcxbs) {
		this.zplldcxbs = zplldcxbs;
	}
	public String getZplldbz() {
		return zplldbz;
	}
	public void setZplldbz(String zplldbz) {
		this.zplldbz = zplldbz;
	}
	public String isCheck(int userId,String menuName){
		BaseService baseService = (BaseService)BeansFactory.get("baseService");
		TdMenu td = new TdMenu();
		td.setUserId(userId);
		td.setName(menuName);
		if(baseService.findByExample(td).size()>0)
			return "01";
		else
			return "";
	}
	public String lsqcString(){
		String s = this.lsqc!=null?lsqc:"栏栅气窗";
		float t1 = 0,t2=0,t3=0;
		if(this.getName().equals("单门")){
			float d_height = this.getD_height()!=0?this.getD_height():this.getHeight() == 0 ? this.getPheight() : this
					.getHeight(); // 门高
			float qc_height = this.getQc_height()!=0?this.getQc_height():this.getPheight() - d_height; // 气窗高
			float nk_left = this.getNk_left()!=0?this.getNk_left():d_height - 83;
			float nk_bottom = this.getNk_bottom()!=0?this.getNk_bottom():this.getPwidth() - 84;
			t1 = this.getLsqc1()!=0?this.getLsqc1():(qc_height != 0) ? nk_bottom - 26 : 0;
			t2 = this.getLsqc2()!=0?this.getLsqc2():(qc_height != 0) ? qc_height - 55 : 0;
			t3  = this.getLsqc3()!=0?this.getLsqc3():(qc_height != 0) ? this.getProCount() : 0;
		}
		if(this.getName().equals("子母")){
			float d_height = this.getD_height()!=0?this.getD_height():this.getHeight() == 0 ? this.getPheight() : this
					.getHeight(); // 门高
			float qc_height = this.getQc_height()!=0?this.getQc_height():this.getPheight() - d_height; // 气窗高

			float nk_left = this.getNk_left()!=0?this.getNk_left():d_height - 83;
			float nk_bottom = this.getNk_bottom()!=0?this.getNk_bottom():this.getPwidth() - 84;
			t1 = this.getLsqc1()!=0?this.getLsqc1():(qc_height != 0) ? nk_bottom - 26 : 0;
			t2 = this.getLsqc2()!=0?this.getLsqc2():(qc_height != 0) ? qc_height - 55 : 0;
			t3 = this.getLsqc3()!=0?this.getLsqc3():(qc_height != 0) ?this.getProCount() : 0;
		}
		if(this.getName().equals("电控锁")){
			float d_height = this.getD_height()!=0?this.getD_height():this.getHeight() == 0 ? this.getPheight() : this
					.getHeight(); // 门高
			float qc_height = this.getQc_height()!=0?this.getQc_height():this.getPheight() - d_height; // 气窗高

			t1 = this.getLsqc1()!=0?this.getLsqc1():(qc_height != 0) ? this.getPwidth()-84 - 24 : 0;
			t2 = this.getLsqc2()!=0?this.getLsqc2():(qc_height != 0) ? qc_height - 55 : 0;
			t3 = this.getLsqc3()!=0?this.getLsqc3():(qc_height != 0) ? this.getProCount() : 0;
		}
		if(this.getName().equals("对开")){
			float d_height = this.getD_height()!=0?this.getD_height():this.getHeight() == 0 ? this.getPheight() : this
					.getHeight(); // 门高
			float qc_height = this.getQc_height()!=0?this.getQc_height():this.getPheight() - d_height; // 气窗高
			float nk_left = this.getNk_left()!=0?this.getNk_left():d_height - 83;
			float nk_bottom = this.getNk_bottom()!=0?this.getNk_bottom():this.getPwidth() - 84;
			t1 = this.getLsqc1()!=0?this.getLsqc1():(qc_height != 0) ? nk_bottom - 26 : 0;
			t2 = this.getLsqc2()!=0?this.getLsqc2():(qc_height != 0) ? qc_height - 55 : 0;
			t3 = this.getLsqc3()!=0?this.getLsqc3():(qc_height != 0) ? this.getProCount() : 0;
		}
		if(this.getName().equals("四开")){
			float d_height = this.getD_height()!=0?this.getD_height():this.getHeight() == 0 ? this.getPheight() : this
					.getHeight(); // 门高
			float qc_height = this.getQc_height()!=0?this.getQc_height():this.getPheight() - d_height; // 气窗高
			float nk_bottom = this.getNk_bottom()!=0?this.getNk_bottom():this.getPwidth() - 84;
			t1 = this.getLsqc1()!=0?this.getLsqc1():(qc_height != 0) ? nk_bottom - 24 : 0;
			t2 = this.getLsqc2()!=0?this.getLsqc2():(qc_height != 0) ? qc_height - 55 : 0;
			t3 = this.getLsqc3()!=0?this.getLsqc3():(qc_height != 0) ? this.getProCount() : 0;
		}
		if(this.getName().equals("四开子母")){
			float d_height = this.getD_height()!=0?this.getD_height():this.getHeight() == 0 ? this.getPheight() : this
					.getHeight(); // 门高
			float qc_height = this.getQc_height()!=0?this.getQc_height():this.getPheight() - d_height; // 气窗高
			float nk_bottom = this.getNk_bottom()!=0?this.getNk_bottom():this.getPwidth() - 84;
			t1 = this.getLsqc1()!=0?this.getLsqc1():((qc_height != 0) ? nk_bottom - 24 : 0);
			t2 = this.getLsqc2()!=0?this.getLsqc2():((qc_height != 0) ? qc_height - 55 : 0);
			t3 = this.getLsqc3()!=0?this.getLsqc3():(qc_height != 0) ? this.getProCount() : 0;
		}
		
		if(StringUtil.isNotBlank(this.getLscq22()))
			return s+":"+this.getLscq22();
		return s+":"+ObjectUtil.subZeroAndDot(t1)+"*"+ObjectUtil.subZeroAndDot(t2)+"*"+ObjectUtil.subZeroAndDot(t3);
	}
	public String mmlldString(){
		String rs = "";
		if(this.getName().equals("四开子母")||this.getName().equals("四开子母封闭")){
			float d_height = this.getD_height() != 0 ? this.getD_height()
					: this.getHeight() == 0 ? this.getPheight() : this
							.getHeight(); // 门高
			float qc_height = this.getQc_height() != 0 ? this.getQc_height()
					: this.getPheight() - d_height; // 气窗高
			float nk_bottom = this.getNk_bottom() != 0 ? this.getNk_bottom()
					: this.getPwidth() - 84;
			float lsqc1 = this.getLsqc1() != 0 ? this.getLsqc1()
					: ((qc_height != 0) ? nk_bottom - 24 : 0);
			float lsqc2 = this.getLsqc2() != 0 ? this.getLsqc2()
					: ((qc_height != 0) ? qc_height - 55 : 0);
			float lsqc3 = this.getLsqc3() != 0 ? this.getLsqc3()
					: (qc_height != 0) ? this.getProCount() : 0;
			float zd1 = this.getZd1() != 0 ? this.getZd1()
					: (this.getDoorframe().equals("宽边") ? this.getPheight() + 85
							: this.getDoorframe().equals("外宽边") ? this
									.getPheight() + 60 : this.getDoorframe()
									.equals("普边") ? this.getPheight() : 0);
			float zd2 = this.getZd2() != 0 ? this.getZd2() : (this
					.getDoorframe().equals("宽边") ? 350 : this.getDoorframe()
					.equals("外宽边") ? 326 : this.getDoorframe().equals("普边") ? 250
					: 0);
			float sd1 = this.getSd1() != 0 ? this.getSd1()
					: (this.getDoorframe().equals("宽边") ? this.getPwidth() - 84 + 260
							: this.getDoorframe().equals("外宽边") ? this
									.getPwidth() - 84 + 210 : this.getDoorframe()
									.equals("普边") ? this.getPwidth() - 84 : 0);
			float sd2 = this.getSd2() != 0 ? this.getSd2() : this
					.getDoorframe().equals("宽边") ? 350 : this.getDoorframe()
					.equals("外宽边") ? 326 : this.getDoorframe().equals("普边") ? 250
					: 0;
			float zongd1 = this.getZongd1() != 0 ? this.getZongd1() : (this
					.getHeight() != 0) ? this.getPwidth() - 84 : 0;
			float zongd2 = this.getZongd2() != 0 ? this.getZongd2() : (this
					.getHeight() != 0) ? 250 : 0;
			float bxt1 = this.getBxt1() != 0 ? this.getBxt1() : this
					.getPwidth() - 84;
			float bxt2 = this.getBxt2() != 0 ? this.getBxt2() : 225;
			float bxt3 = this.getBxt3() != 0 ? this.getBxt3() : this
					.getPwidth() - 136;

			double t1s = this.getT1s() != 0 ? this.getT1s() : (this
					.getPwidth() - 94) / 4 - 245.5; // 图1
			double t1x = this.getT1x() != 0 ? this.getT1x() : t1s + 13 - 1;
			float t3s = this.getT3s() != 0 ? this.getT3s() : (new BigDecimal(
					((nk_bottom - t1s * 2 - 13) / 2 - 10)).setScale(0,
					BigDecimal.ROUND_HALF_UP)).floatValue();
			double t3x = this.getT3x() != 0 ? this.getT3x() : t3s + 13 - 1;
			double t2x = this.getT2x() != 0 ? this.getT2x() : nk_bottom - t1s
					* 2 - 44 - t3s + 1;
			double t2s = this.getT2s() != 0 ? this.getT2s() : t2x + 43 - 1;
			double t4s = this.getT4s() != 0 ? this.getT4s() : t1s;
			double t4x = this.getT4x() != 0 ? this.getT4x() : t4s + 13 - 1;
			float xl1 = this.getXl1() != 0 ? this.getXl1() : d_height - 55;
			double xl2 = this.getXl2() != 0 ? this.getXl2() : t1s + 128;
			float xl3 = this.getXl3() != 0 ? this.getXl2() : d_height - 55;
			double xl4 = this.getXl4() != 0 ? this.getXl4() : t2s + 43;
			float xl5 = this.getXl5() != 0 ? this.getXl5() : d_height - 55;
			double xl6 = this.getXl6() != 0 ? this.getXl6() : t3s + 128;
			float xl7 = this.getXl7() != 0 ? this.getXl7() : d_height - 55;
			double xl8 = this.getXl8() != 0 ? this.getXl8() : t4s + 128;
			float xlx1 = this.getXlx1() != 0 ? this.getXlx1() : d_height - 94;
			double xlx2 = this.getXlx2() != 0 ? this.getXlx2() : t1x + 99;
			float xlx3 = this.getXlx3() != 0 ? this.getXlx3() : d_height - 94;
			double xlx4 = this.getXlx4() != 0 ? this.getXlx4() : t2x + 185;
			float xlx5 = this.getXlx5() != 0 ? this.getXlx5() : d_height - 94;
			double xlx6 = this.getXlx6() != 0 ? this.getXlx6() : t3x + 99;
			float xlx7 = this.getXlx7() != 0 ? this.getXlx7() : d_height - 94;
			double xlx8 = this.getXlx8() != 0 ? this.getXlx8() : t4x + 99;
			xl1 = xlq(xl1);xl2 = xlh(xl2);xl3 = xlq(xl3);xl4 = xlh(xl4);xl5 = xlq(xl5);xl6 = xlh(xl6);xl7 = xlq(xl7);xl8 = xlh(xl8);
			xlx1 = xlq(xlx1);xlx2 = xlh(xlx2);xlx3 = xlq(xlx3);xlx4 = xlh(xlx4);xlx5 = xlq(xlx5);xlx6 = xlh(xlx6);xlx7 = xlq(xlx7);xlx8 = xlh(xlx8);
			String t1 = xl1+"*"+xl2+"*"+this.getMmhd();
			String t2 = xl3+"*"+xl4+"*"+this.getMmhd();
			String t3 = xl5+"*"+xl6+"*"+this.getMmhd();
			String t4 = xl7+"*"+xl8+"*"+this.getMmhd();
			String t5 = xlx1+"*"+xlx2+"*"+this.getMmhd();
			String t6 = xlx3+"*"+xlx4+"*"+this.getMmhd();
			String t7 = xlx5+"*"+xlx6+"*"+this.getMmhd();
			String t8 = xlx7+"*"+xlx8+"*"+this.getMmhd();
			String[] t = {t1,t2,t3,t4,t5,t6,t7,t8};
			Set<String> s = new HashSet<String>();
			for(int i=0;i<t.length;i++){
				String x = t[i];
				int count = 1;
				String xs = t[i];
				for(int j=i+1;j<t.length;j++){
					
					if(!x.equals("123"))
					if(t[i].equals(t[j])){
						count++;
						xs = t[i];
						t[j]="123";
					}
						
				}
				if(!t[i].equals("123"))
				s.add(xs+"*"+count+"*"+this.getProCount());
				
			}
			for (String str : s) {  
			     rs = rs+str+"｜";  
			} 
			/*rs = xlq(xl1)+"*"+xlh(xl2)+"*"+this.getMmhd()+"*"+4+"*"+this.getProCount()+"｜"+
			xlq(xlx3)+"*"+xlh(xlx4)+"*"+this.getMmhd()+"*4*"+this.getProCount();*/
			
		}
		if(this.getName().equals("四开")||this.getName().equals("四开封闭")){
			float d_height = this.getD_height() != 0 ? this.getD_height()
					: this.getHeight() == 0 ? this.getPheight() : this
							.getHeight(); // 门高
			double t1s = this.getT1s() != 0 ? this.getT1s() : (this
					.getPwidth() - 94) / 4 - 1.5; // 图1
			double t1x = this.getT1x() != 0 ? this.getT1x() : t1s + 13;
			double t3s = this.getT3s() != 0 ? this.getT3s() : (this
					.getPwidth() - 86) / 4 - 10.5;
			double t3x = this.getT3x() != 0 ? this.getT3x() : t3s + 13;
			double t2x = this.getT2x() != 0 ? this.getT2x() : t3s - 13;
			double t2s = this.getT2s() != 0 ? this.getT2s() : t2x + 43;
			double t4s = this.getT4s() != 0 ? this.getT4s() : t1s;
			double t4x = this.getT4x() != 0 ? this.getT4x() : t4s + 13;
			float xl1 = this.getXl1() != 0 ? this.getXl1() : d_height - 55;
			double xl2 = this.getXl2() != 0 ? this.getXl2() : t1s + 128;
			float xl3 = this.getXl3() != 0 ? this.getXl3() : d_height - 55;
			double xl4 = this.getXl4() != 0 ? this.getXl4() : t2s + 43;
			float xl5 = this.getXl5() != 0 ? this.getXl5() : d_height - 55;
			double xl6 = this.getXl6() != 0 ? this.getXl6() : t3s + 128;
			float xl7 = this.getXl7() != 0 ? this.getXl7() : d_height - 55;
			double xl8 = this.getXl8() != 0 ? this.getXl8() : t4s + 128;
			float xlx1 = this.getXlx1() != 0 ? this.getXlx1() : d_height - 94;
			double xlx2 = this.getXlx2() != 0 ? this.getXlx2() : t1x + 99;
			float xlx3 = this.getXlx3() != 0 ? this.getXlx3() : d_height - 94;
			double xlx4 = this.getXlx4() != 0 ? this.getXlx4() : t2x + 185;
			float xlx5 = this.getXlx5() != 0 ? this.getXlx5() : d_height - 94;
			double xlx6 = this.getXlx6() != 0 ? this.getXlx6() : t3x + 99;
			float xlx7 = this.getXlx7() != 0 ? this.getXlx7() : d_height - 94;
			double xlx8 = this.getXlx8() != 0 ? this.getXlx8() : t4x + 99;

			xl1 = xlq(xl1);xl2 = xlh(xl2);xl3 = xlq(xl3);xl4 = xlh(xl4);xl5 = xlq(xl5);xl6 = xlh(xl6);xl7 = xlq(xl7);xl8 = xlh(xl8);
			xlx1 = xlq(xlx1);xlx2 = xlh(xlx2);xlx3 = xlq(xlx3);xlx4 = xlh(xlx4);xlx5 = xlq(xlx5);xlx6 = xlh(xlx6);xlx7 = xlq(xlx7);xlx8 = xlh(xlx8);
			String t1 = xl1+"*"+xl2+"*"+this.getMmhd();
			String t2 = xl3+"*"+xl4+"*"+this.getMmhd();
			String t3 = xl5+"*"+xl6+"*"+this.getMmhd();
			String t4 = xl7+"*"+xl8+"*"+this.getMmhd();
			String t5 = xlx1+"*"+xlx2+"*"+this.getMmhd();
			String t6 = xlx3+"*"+xlx4+"*"+this.getMmhd();
			String t7 = xlx5+"*"+xlx6+"*"+this.getMmhd();
			String t8 = xlx7+"*"+xlx8+"*"+this.getMmhd();
			String[] t = {t1,t2,t3,t4,t5,t6,t7,t8};
			Set<String> s = new HashSet<String>();
			for(int i=0;i<t.length;i++){
				String x = t[i];
				int count = 1;
				String xs = t[i];
				for(int j=i+1;j<t.length;j++){
					
					if(!x.equals("123"))
					if(t[i].equals(t[j])){
						count++;
						xs = t[i];
						t[j]="123";
					}
						
				}
				if(!t[i].equals("123"))
				s.add(xs+"*"+count+"*"+this.getProCount());
				
			}
			for (String str : s) {  
			     rs = rs+str+"｜";  
			} 
		}
		if(this.getName().equals("对开")||this.getName().equals("对开封闭")){
			float d_height = this.getD_height() != 0 ? this.getD_height()
					: this.getHeight() == 0 ? this.getPheight() : this
							.getHeight(); // 门高
			float qc_height = this.getQc_height() != 0 ? this.getQc_height()
					: this.getPheight() - d_height; // 气窗高
			float nk_left = this.getNk_left() != 0 ? this.getNk_left()
					: d_height - 83;
			float nk_bottom = this.getNk_bottom() != 0 ? this.getNk_bottom()
					: this.getPwidth() - 84;
			float lsqc1 = this.getLsqc1() != 0 ? this.getLsqc1()
					: (qc_height != 0) ? nk_bottom - 26 : 0;
			float lsqc2 = this.getLsqc2() != 0 ? this.getLsqc2()
					: (qc_height != 0) ? qc_height - 55 : 0;
			float lsqc3 = this.getLsqc3() != 0 ? this.getLsqc3()
					: (qc_height != 0) ? this.getProCount() : 0;
			float zd1 = this.getZd1() != 0 ? this.getZd1()
					: this.getDoorframe().equals("宽边") ? this.getPheight() + 85
							: this.getDoorframe().equals("外宽边") ? this
									.getPheight() + 60 : this.getDoorframe()
									.equals("普边") ? this.getPheight() : 0;
			float zd2 = this.getZd2() != 0 ? this.getZd2() : this
					.getDoorframe().equals("宽边") ? 350 : this.getDoorframe()
					.equals("外宽边") ? 326 : this.getDoorframe().equals("普边") ? 250
					: 0;
			float sd1 = this.getSd1() != 0 ? this.getSd1()
					: this.getDoorframe().equals("宽边") ? this.getPwidth() - 84 + 260
							: this.getDoorframe().equals("外宽边") ? this
									.getPwidth() - 84 + 210 : this.getDoorframe()
									.equals("普边") ? this.getPwidth() - 84 : 0;
			float sd2 = this.getSd2() != 0 ? this.getSd2() : this
					.getDoorframe().equals("宽边") ? 350 : this.getDoorframe()
					.equals("外宽边") ? 326 : this.getDoorframe().equals("普边") ? 250
					: 0;
			float zongd1 = this.getZongd1() != 0 ? this.getZongd1() : (this
					.getHeight() != 0) ? this.getPwidth() - 84 : 0;
			float zongd2 = this.getZongd2() != 0 ? this.getZongd2() : (this
					.getHeight() != 0) ? 250 : 0;
			float bxt1 = this.getBxt1() != 0 ? this.getBxt1() : this
					.getPwidth() - 84;
			float bxt2 = this.getBxt2() != 0 ? this.getBxt2() : 225;
			float bxt3 = this.getBxt3() != 0 ? this.getBxt3() : this
					.getPwidth() - 136;

			double t2s = this.getT2s() != 0 ? this.getT2s() : (this
					.getPwidth() - 92) / 2 - 7;
			double t1x = this.getT1x() != 0 ? this.getT1x() : this
					.getPwidth() - 84 - t2s - 38 - 1;
			double t1s = this.getT1s() != 0 ? this.getT1s() : t1x + 43; // 图1
			double t2x = this.getT2x() != 0 ? this.getT2x() : t2s + 13 - 1;

			float xl1 = this.getXl1() != 0 ? this.getXl1() : d_height - 55;
			double xl2 = this.getXl2() != 0 ? this.getXl2() : t1s + 43;
			float xl3 = this.getXl3() != 0 ? this.getXl3() : d_height - 55;
			double xl4 = this.getXl4() != 0 ? this.getXl4() : t2s + 128;

			float xlx1 = this.getXlx1() != 0 ? this.getXlx1() : d_height - 94;
			double xlx2 = this.getXlx2() != 0 ? this.getXlx2() : t1x + 185;
			float xlx3 = this.getXlx3() != 0 ? this.getXlx3() : d_height - 94;
			double xlx4 = this.getXlx4() != 0 ? this.getXlx4() : t2x + 99;
			xl1 = xlq(xl1);xl2 = xlh(xl2);xl3 = xlq(xl3);xl4 = xlh(xl4);
			xlx1 = xlq(xlx1);xlx2 = xlh(xlx2);xlx3 = xlq(xlx3);xlx4 = xlh(xlx4);
			String t1 = xl1+"*"+xl2+"*"+this.getMmhd();
			String t2 = xl3+"*"+xl4+"*"+this.getMmhd();
			
			String t5 = xlx1+"*"+xlx2+"*"+this.getMmhd();
			String t6 = xlx3+"*"+xlx4+"*"+this.getMmhd();
			
			String[] t = {t1,t2,t5,t6};
			Set<String> s = new HashSet<String>();
			for(int i=0;i<t.length;i++){
				String x = t[i];
				int count = 1;
				String xs = t[i];
				for(int j=i+1;j<t.length;j++){
					
					if(!x.equals("123"))
					if(t[i].equals(t[j])){
						count++;
						xs = t[i];
						t[j]="123";
					}
						
				}
				if(!t[i].equals("123"))
				s.add(xs+"*"+count+"*"+this.getProCount());
				
			}
			for (String str : s) {  
			     rs = rs+str+"｜";  
			} 
			
			
		}
		if(this.getName().equals("子母")||this.getName().equals("子母封闭")){
			float d_height = this.getD_height() != 0 ? this.getD_height()
					: this.getHeight() == 0 ? this.getPheight() : this
							.getHeight(); // 门高
			float qc_height = this.getQc_height() != 0 ? this.getQc_height()
					: this.getPheight() - d_height; // 气窗高

			float nk_left = this.getNk_left() != 0 ? this.getNk_left()
					: d_height - 83;
			float nk_bottom = this.getNk_bottom() != 0 ? this.getNk_bottom()
					: this.getPwidth() - 84;
			float lsqc1 = this.getLsqc1() != 0 ? this.getLsqc1()
					: (qc_height != 0) ? nk_bottom - 26 : 0;
			float lsqc2 = this.getLsqc2() != 0 ? this.getLsqc2()
					: (qc_height != 0) ? qc_height - 55 : 0;
			float lsqc3 = this.getLsqc3() != 0 ? this.getLsqc3()
					: (qc_height != 0) ? this.getProCount() : 0;

			float zd1 = this.getZd1() != 0 ? this.getZd1()
					: this.getDoorframe().equals("宽边") ? this.getPheight() + 85
							: this.getDoorframe().equals("外宽边") ? this
									.getPheight() + 60 : this.getDoorframe()
									.equals("普边") ? this.getPheight() : 0;
			float zd2 = this.getZd2() != 0 ? this.getZd2() : this
					.getDoorframe().equals("宽边") ? 350 : this.getDoorframe()
					.equals("外宽边") ? 326 : this.getDoorframe().equals("普边") ? 250
					: 0;
			float sd1 = this.getSd1() != 0 ? this.getSd1()
					: this.getDoorframe().equals("宽边") ? this.getPwidth() - 84 + 260
							: this.getDoorframe().equals("外宽边") ? this
									.getPwidth() - 84 + 210 : this.getDoorframe()
									.equals("普边") ? this.getPwidth() - 84 : 0;
			float sd2 = this.getSd2() != 0 ? this.getSd2() : this
					.getDoorframe().equals("宽边") ? 350 : this.getDoorframe()
					.equals("外宽边") ? 326 : this.getDoorframe().equals("普边") ? 250
					: 0;
			float zongd1 = this.getZongd1() != 0 ? this.getZongd1() : (this
					.getHeight() != 0) ? this.getPwidth() - 84 : 0;
			float zongd2 = this.getZongd2() != 0 ? this.getZongd2() : (this
					.getHeight() != 0) ? 250 : 0;
			float bxt1 = this.getBxt1() != 0 ? this.getBxt1() : this
					.getPwidth() - 84;
			float bxt2 = this.getBxt2() != 0 ? this.getBxt2() : 225;
			float bxt3 = this.getBxt3() != 0 ? this.getBxt3() : this
					.getPwidth() - 136;
			double t1s = this.getT1s() != 0 ? this.getT1s() : this
					.getPwidth() / 2 + 190; // 图1
			double t1x = this.getT1x() != 0 ? this.getT1x() : t1s - 43 - 1;
			double t2s = this.getT2s() != 0 ? this.getT2s() : this
					.getPwidth() - 92 - t1x - 30;
			double t2x = this.getT2x() != 0 ? this.getT2x() : t2s + 13;

			float xl1 = this.getXl1() != 0 ? this.getXl1() : d_height - 55;
			double xl2 = this.getXl2() != 0 ? this.getXl2() : t1s + 43;
			float xl3 = this.getXl3() != 0 ? this.getXl3() : d_height - 55;
			double xl4 = this.getXl4() != 0 ? this.getXl4() : t2s + 128;

			float xlx1 = this.getXlx1() != 0 ? this.getXlx1() : d_height - 94;
			double xlx2 = this.getXlx2() != 0 ? this.getXlx2() : t1x + 185;
			float xlx3 = this.getXlx3() != 0 ? this.getXlx3() : d_height - 94;
			double xlx4 = this.getXlx4() != 0 ? this.getXlx4() : t2x + 99;
			
			xl1 = xlq(xl1);xl2 = xlh(xl2);xl3 = xlq(xl3);xl4 = xlh(xl4);
			xlx1 = xlq(xlx1);xlx2 = xlh(xlx2);xlx3 = xlq(xlx3);xlx4 = xlh(xlx4);
			String t1 = xl1+"*"+xl2+"*"+this.getMmhd();
			String t2 = xl3+"*"+xl4+"*"+this.getMmhd();
			
			String t5 = xlx1+"*"+xlx2+"*"+this.getMmhd();
			String t6 = xlx3+"*"+xlx4+"*"+this.getMmhd();
			
			String[] t = {t1,t2,t5,t6};
			Set<String> s = new HashSet<String>();
			for(int i=0;i<t.length;i++){
				String x = t[i];
				int count = 1;
				String xs = t[i];
				for(int j=i+1;j<t.length;j++){
					
					if(!x.equals("123"))
					if(t[i].equals(t[j])){
						count++;
						xs = t[i];
						t[j]="123";
					}
						
				}
				if(!t[i].equals("123"))
				s.add(xs+"*"+count+"*"+this.getProCount());
				
			}
			for (String str : s) {  
			     rs = rs+str+"｜";  
			} 
			
		}
		if(this.getName().equals("单门")||this.getName().equals("单门封闭")){
			float d_height = this.getD_height() != 0 ? this.getD_height()
					: this.getHeight() == 0 ? this.getPheight() : this
							.getHeight(); // 门高
			float qc_height = this.getQc_height() != 0 ? this.getQc_height()
					: this.getPheight() - d_height; // 气窗高
			float nk_left = this.getNk_left() != 0 ? this.getNk_left()
					: d_height - 83;
			float nk_bottom = this.getNk_bottom() != 0 ? this.getNk_bottom()
					: this.getPwidth() - 84;
			float lsqc1 = this.getLsqc1() != 0 ? this.getLsqc1()
					: (qc_height != 0) ? nk_bottom - 26 : 0;
			float lsqc2 = this.getLsqc2() != 0 ? this.getLsqc2()
					: (qc_height != 0) ? qc_height - 55 : 0;
			float lsqc3 = this.getLsqc3() != 0 ? this.getLsqc3()
					: (qc_height != 0) ? this.getProCount() : 0;

			float zd1 = this.getZd1() != 0 ? this.getZd1()
					: this.getDoorframe().equals("宽边") ? this.getPheight() + 65
							: this.getDoorframe().equals("外宽边") ? this
									.getPheight() + 40 : this.getDoorframe()
									.equals("普边") ? this.getPheight() : 0;
			float zd2 = this.getZd2() != 0 ? this.getZd2() : this
					.getDoorframe().equals("宽边") ? 330 : this.getDoorframe()
					.equals("外宽边") ? 308 : this.getDoorframe().equals("普边") ? 250
					: 0;
			float zd3 = 2108;
			float zd4 = 250;
			float bxt1 = this.getBxt1() != 0 ? this.getBxt1() : nk_bottom;
			float bxt2 = this.getBxt2() != 0 ? this.getBxt2() : 225;
			float bxt3 = this.getBxt3() != 0 ? this.getBxt3() : this
					.getPwidth() - 136;

			float sd1 = this.getSd1() != 0 ? this.getSd1() : this
					.getDoorframe().equals("宽边") ? bxt1 + 220 : this
					.getDoorframe().equals("外宽边") ? this.getPwidth() - 84 + 170
					: this.getDoorframe().equals("普边") ? this.getPwidth() - 84
							: 0;
			float sd2 = this.getSd2() != 0 ? this.getSd2() : this
					.getDoorframe().equals("宽边") ? 330 : this.getDoorframe()
					.equals("外宽边") ? 308 : this.getDoorframe().equals("普边") ? 250
					: 0;

			float zongd1 = this.getZongd1() != 0 ? this.getZongd1() : (this
					.getHeight() != 0) ? this.getPwidth() - 84 : 0;
			float zongd2 = this.getZongd2() != 0 ? this.getZongd2() : (this
					.getHeight() != 0) ? 250 : 0;

			double t1s = this.getT1s() != 0 ? this.getT1s() : nk_bottom - 5; // 图1
			double t1x = this.getT1x() != 0 ? this.getT1x() : t1s - 33;

			float xl1 = this.getXl1() != 0 ? this.getXl1() : d_height - 55;
			double xl2 = this.getXl2() != 0 ? this.getXl2() : t1s + 55;
			float xlx1 = this.getXlx1() != 0 ? this.getXlx1() : d_height - 94;
			double xlx2 = this.getXlx2() != 0 ? this.getXlx2() : t1x + 167;
			xl1 = xlq(xl1);xl2 = xlh(xl2);xl3 = xlq(xl3);;
			xlx1 = xlq(xlx1);xlx2 = xlh(xlx2);;
			String t1 = xl1+"*"+xl2+"*"+this.getMmhd();
			String t2 = xl3+"*"+xl4+"*"+this.getMmhd();
			
			String t5 = xlx1+"*"+xlx2+"*"+this.getMmhd();
			String t6 = xlx3+"*"+xlx4+"*"+this.getMmhd();
			
			String[] t = {t1,t2,t5,t6};
			Set<String> s = new HashSet<String>();
			for(int i=0;i<t.length;i++){
				String x = t[i];
				int count = 1;
				String xs = t[i];
				for(int j=i+1;j<t.length;j++){
					
					if(!x.equals("123"))
					if(t[i].equals(t[j])){
						count++;
						xs = t[i];
						t[j]="123";
					}
						
				}
				if(!t[i].equals("123"))
				s.add(xs+"*"+count+"*"+this.getProCount());
				
			}
			for (String str : s) {  
			     rs = rs+str+"｜";  
			} 
		}
		return rs;
	}
	private float xlq(float xl1){
		if(xl1<2000)
			xl1 = 2000;
		if(xl1<2200&&xl1>2000)
			xl1 = 2200;
		if(xl1<2400 && xl1>2200)
			xl1 = 2400;;
		if(xl1<2500 && xl1>2400)
			xl1 = 2500;
		if(xl1<2600 && xl1>2500)
			xl1 = 2500;
		return xl1;
	}
	private double xlh(double xl2){
		if(xl2<500)
			xl2=500;
		if(xl2>500 && xl2<625)
			xl2 = 625;
		if(xl2>625 && xl2<750)
			xl2 = 750;
		if(xl2>750&&xl2<1005)
			xl2 = 1000;
		if(xl2>1005&&xl2<1250)
			xl2 = 1250;
		return xl2;
	}
	public String jlString(){
		if(this.getName().equals("单门")||this.getName().equals("单门封闭")){
			if(this.hinge.equals("暗2") || this.hinge.equals("暗3")||this.hinge.equals("暗4")){
				return this.hinge+"*"+this.proCount;
			}else{
				return this.hinge+"*"+(this.direction.equals("内右")?"左":this.direction.equals("内左")?"右":this.direction.equals("外左")?"左":this.direction.equals("外右")?"右":this.direction)+"*"+this.getProCount();
			}
		}
		if(this.getName().equals("对开") || this.getName().equals("子母")||this.getName().equals("对开封闭") || this.getName().equals("子母封闭")){
			if(this.hinge.equals("暗2") || this.hinge.equals("暗3")||this.hinge.equals("暗4")){
				return this.hinge+"*"+(2*this.proCount);
			}else{
				return "左"+this.hinge+"*"+this.getProCount()+"  右"+this.hinge+"*"+this.getProCount();
			}
		}
		if(this.getName().equals("四开") || this.getName().equals("四开子母")||this.getName().equals("四开封闭") || this.getName().equals("四开子母封闭")){
			if(this.hinge.equals("暗2") || this.hinge.equals("暗3")||this.hinge.equals("暗4")){
				return this.hinge+"*"+(2*this.proCount);
			}else{
				return "左"+this.hinge+"*"+(2*this.getProCount())+"  右"+this.hinge+"*"+(2*this.getProCount());
			}
		}
		return "";
	}
	public String sjString(){
			if(this.getLocks().indexOf("电控锁")>-1)
				return this.getLocks()+"*"+this.proCount;
			else
				return this.getLocks()+"*"+this.direction+"*"+this.proCount;
	}
	public String myString(){
		if(this.getName().equals("单门")||this.getName().equals("单门封闭")){
			return this.getCatseye().equals("有")?(this.getProCount()+""):"无";
		}
		if(this.getName().equals("四开子母") || this.getName().equals("对开")||this.getName().equals("四开子母封闭") || this.getName().equals("对开封闭")){
			return this.getCatseye().equals("有")?(this.getProCount()*2+""):"无";
		}
		if(this.getName().equals("子母")||this.getName().equals("子母封闭")){
			return this.getCatseye().equals("有")?(this.getProCount()+""):"无";
		}
		return this.getCatseye().equals("有")?(this.getProCount()*2+""):"无";
	}
	public String mlString(){
		if(this.getName().equals("单门")||this.getName().equals("单门封闭")){
			return this.getDoorbell().equals("有")?(this.getProCount()+""):"无";
		}
		if(this.getName().equals("四开子母") || this.getName().equals("对开")||this.getName().equals("四开子母封闭") || this.getName().equals("对开封闭")){
			return this.getCatseye().equals("有")?(this.getProCount()*2+""):"无";
		}
		if(this.getName().equals("子母")||this.getName().equals("子母封闭")){
			return this.getCatseye().equals("有")?(this.getProCount()+""):"无";
		}
		return this.getDoorbell().equals("有")?(this.getProCount()*2+""):"无";
	}
	public String csString(){
		if(this.getName().equals("单门")||this.getName().equals("单门封闭"))
			return "无";
		if(this.getName().equals("子母")||this.getName().equals("对开")||this.getName().equals("子母封闭")||this.getName().equals("对开封闭"))
			return 2*this.getProCount()+"";
		if(this.getName().equals("四开")||this.getName().equals("四开子母")||this.getName().equals("四开封闭")||this.getName().equals("四开子母封闭"))
			return 6*this.getProCount()+"";
		return "";
	}
	public String qcString(){
		if(this.getName().indexOf("封闭")>-1)
			return this.getName();
		if(this.height!=0){
			if(StringUtil.isNotBlank(this.getLsqc())){
				return getLsqc().substring(0,getLsqc().lastIndexOf("气窗"));
			}else{
				return "栏栅";
			}
		}
		return "无";
	}
	public String remarksString(){
		/*String t1 = this.remarks;
		String t2 = "";
		
		if(t1.indexOf("2.")>-1){
			t2 = t1.split("2.")[0]+"<br/>2."+t1.split("2.")[1];
			if(t2.indexOf("3.")>-1){
				t2 = t2.split("3.")[0]+"<br/>3."+t2.split("3.")[1];
			if(t2.indexOf("4.")>-1){
				t2 = t2.split("4.")[0]+"<br/>4."+t2.split("4.")[1];
			if(t2.indexOf("5.")>-1){
				t2 = t2.split("5.")[0]+"<br/>5."+t2.split("5.")[1];
			if(t2.indexOf("6.")>-1)
				t2 = t2.split("6.")[0]+"<br/>6."+t2.split("6.")[1];}}
			}
		}*/
		return this.remarks.replaceAll("\r\n", "<br/>");
	}
	public String pheightString(){
		return ObjectUtil.subZeroAndDot(this.getPheight());
	}
	public String pwidthString(){
		return ObjectUtil.subZeroAndDot(this.getPwidth());
	}
	public String heightString(){
		return ObjectUtil.subZeroAndDot(this.getHeight());
	}
}
